package com.neusoft.neu.service;

import com.neusoft.neu24.Result.CommonResult;
import com.neusoft.neu24.dto.GridorDTO;
import com.neusoft.neu24.dto.MemberDTO;
import com.neusoft.neu24.dto.UserLoginDTO;
import com.neusoft.neu24.entity.Gridor;
import com.neusoft.neu24.entity.Member;
import org.springframework.stereotype.Service;

import java.util.List;

public interface IMemberService {
    CommonResult<Member> login(UserLoginDTO userLoginDTO);

    CommonResult<Member> loginWithPhone(UserLoginDTO userLoginDTO);

    CommonResult<List<MemberDTO>> listAll();

    CommonResult<Integer> newMember();

    CommonResult<Integer> switchMember(Member member);

    CommonResult<List<GridorDTO>> getGridors();

    CommonResult<Integer> editGridor(Gridor gridor);

    CommonResult<Integer> addMember(Member member);
}
